var express = require('express');
var router = express.Router();


var walleCateCtrl = require('../controllers/walleCateCtrl');
router.get('/home', function (req, res) {

    return res.redirect(303, '/views/walleCateHome.html');
});


router.get('/', walleCateCtrl.get);
router.get('/:id', walleCateCtrl.getOne);
router.post('/add', walleCateCtrl.add);
router.post('/update', walleCateCtrl.update);
router.post('/delete', walleCateCtrl.remove);



module.exports = router;
